﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace IceDog.WebApi.ConventionalRoute.Controllers
{
    /// <summary>
    /// 
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    [ProducesResponseType(StatusCodes.Status200OK)]
    public class BaseController : ControllerBase
    {
        /// <summary>
        /// Hello World~
        /// </summary>
        /// <returns></returns>
        protected string GetHelloWorld()
        {
            return $"{this.GetType().Name} : hello world !";
        }
        /// <summary>
        /// What You Input What I Output
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        protected string WYIWIO(string text) => text;
    }
}